package examples.helloworldwithoutfxml

import de.saxsys.mvvmfx.FluentViewLoader
import javafx.application.Application
import javafx.scene.Scene
import javafx.stage.Stage

/**
 * Created by TK-chenbin on 2015/6/5.
 */
class Starter extends Application {
    public static void main(String[] args) {
        launch(Starter, args)
    }

    @Override
    void start(Stage primaryStage) throws Exception {
        def viewTuple = FluentViewLoader.javaView(HelloWorldView).load()
        def root = viewTuple.getView()

        primaryStage.title = "Hello World Application"
        primaryStage.scene = new Scene(root)
        primaryStage.show()
    }
}
